﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Easy.Operation;

namespace Easy.Web.Service.Privilege
{
    /// <summary>
    /// GetBusinessUnit 的摘要说明
    /// </summary>
    public class GetBusinessUnit : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";

            List<BusinessUnitClass> list = UserPrivilege_Functions.GetBusinessUnitList();
            context.Response.Write(list.ToJson());
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}